package com.ruoyi.xsc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.xsc.mapper.GasTypeMapper;
import com.ruoyi.xsc.domain.GasType;
import com.ruoyi.xsc.service.IGasTypeService;

/**
 * 汽油种类Service业务层处理
 * 
 * @author xsc
 * @date 2025-05-13
 */
@Service
public class GasTypeServiceImpl implements IGasTypeService 
{
    @Autowired
    private GasTypeMapper gasTypeMapper;

    /**
     * 查询汽油种类
     * 
     * @param id 汽油种类主键
     * @return 汽油种类
     */
    @Override
    public GasType selectGasTypeById(Long id)
    {
        return gasTypeMapper.selectGasTypeById(id);
    }

    /**
     * 查询汽油种类列表
     * 
     * @param gasType 汽油种类
     * @return 汽油种类
     */
    @Override
    public List<GasType> selectGasTypeList(GasType gasType)
    {
        return gasTypeMapper.selectGasTypeList(gasType);
    }

    /**
     * 新增汽油种类
     * 
     * @param gasType 汽油种类
     * @return 结果
     */
    @Override
    public int insertGasType(GasType gasType)
    {
        return gasTypeMapper.insertGasType(gasType);
    }

    /**
     * 修改汽油种类
     * 
     * @param gasType 汽油种类
     * @return 结果
     */
    @Override
    public int updateGasType(GasType gasType)
    {
        return gasTypeMapper.updateGasType(gasType);
    }

    /**
     * 批量删除汽油种类
     * 
     * @param ids 需要删除的汽油种类主键
     * @return 结果
     */
    @Override
    public int deleteGasTypeByIds(Long[] ids)
    {
        return gasTypeMapper.deleteGasTypeByIds(ids);
    }

    /**
     * 删除汽油种类信息
     * 
     * @param id 汽油种类主键
     * @return 结果
     */
    @Override
    public int deleteGasTypeById(Long id)
    {
        return gasTypeMapper.deleteGasTypeById(id);
    }
}
